package com.raylu.realtime.utils;

import java.io.FileReader;
import java.io.IOException;
import java.util.Properties;

/**
 * Description:
 * <p>
 * Create by lucienoz on 2021/12/24.
 * Copyright © 2021 lucienoz. All rights reserved.
 */
public class PropertiesUtil {
  public static Properties load(String filename) throws IOException {
      Properties prop = new Properties();
      prop.load(Thread.currentThread().getContextClassLoader().getResourceAsStream(filename));
      return prop;
  }

}
